Some Warnings.
#1

(205) : warning 213: tag mismatch
Код:
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
Код:
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
Код:
new Float:x,Float:y,Float:z,Float:Angle;
(271) : warning 209: function "OnPlayerKeyStateChange" should return a value

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Warnings.
Reply
#2

Lines...?
Reply
#3

Quote:
Originally Posted by Ignaciodmr
Посмотреть сообщение
Lines...?
the code below
Reply
#4

1.
PHP код:
new Float:X,FloatY,Float:Z,Float:Angle;
GetPlayerPos(playeridXYZ);
GetPlayerFacingAngle(playeridAngle); 
2. Same as 1
3. The Float:Angle is defined aleardy(somewhere above)
4. Need to put return 1; at the end of public OnPlayerKeyStateChange
Reply
#5

Код:
new Float:X, Float:Y, Float:Z, Float:Angle;
Код:
if (strcmp ("/nrg", cmdtext, true,10) == 0)
{
    SendClientMessage(playerid,COLOR_YELLOW,">> NRG - 500 Spawned!");
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Angle);
    CreateVehicle(522, X, Y, Z + 2.0, Angle, + 90.0, -1, -1, 5000);
    return 1;
Do same with /hydra also ( OnPlayerKeyStateChange ) should return 1;
Reply
#6

Quote:
Originally Posted by Bolex_
Посмотреть сообщение
Код:
new Float:X, Float:Y, Float:Z, Float:Angle;
Код:
if (strcmp ("/nrg", cmdtext, true,10) == 0)
{
    SendClientMessage(playerid,COLOR_YELLOW,">> NRG - 500 Spawned!");
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Angle);
    CreateVehicle(522, X, Y, Z + 2.0, Angle, + 90.0, -1, -1, 5000);
    return 1;
Do same with /hydra also ( OnPlayerKeyStateChange ) should return 1;
let me check wait
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)