Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Some Warnings.

$
0
0
(205) : warning 213: tag mismatch
Code:

if (strcmp ("/nrg", cmdtext, true,10) == 0)
        {
                SendClientMessage(playerid,COLOR_YELLOW,">> NRG - 500 Spawned!");
                GetPlayerPos(playerid, Float:X, Float:Y, Float:Z);
        GetPlayerFacingAngle(playerid, Float:Angle);
        CreateVehicle(522, X, Y, Z + 2.0, Angle + 90.0, -1, -1, 5000);
        return 1;

(213) : warning 213: tag mismatch
Code:

if (strcmp ("/Hydra", cmdtext, true,10) == 0)
        {
                SendClientMessage(playerid,COLOR_YELLOW,">> Hydra Spawned!");
                GetPlayerPos(playerid, Float:X, Float:Y, Float:Z);
        GetPlayerFacingAngle(playerid, Float:Angle);
        CreateVehicle(520, Float: X, Float: Y, Float: Z + 2.0, Angle + 90.0, -1, -1, 5000);
        return 1;
        }

(221) : warning 213: tag mismatch
>> Above
(255) : warning 219: local variable "Angle" shadows a variable at a preceding level
Code:

new Float:x,Float:y,Float:z,Float:Angle;
(271) : warning 209: function "OnPlayerKeyStateChange" should return a value

Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


6 Warnings.

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>