Jump to content

Question

Posted

sall am pus comanda /nrg si imi da 1 warning

C:\Documents and Settings\Nelu\Deskop\GM.pwn(470) : warning 219: local variable "Z" shadows a variable at a preceding level

Linia  new Float:X,Float:Y,Float:Z;

MS :-)

6 answers to this question

Recommended Posts

Posted

Sterge

[pawn]new Float:X[/pawn]

si lasa

[pawn]new Float:Y,Float:Z;[/pawn]

pentru ca

[pawn]new Float:X;[/pawn]

mai este odata  pus undeva mai sus de comanda /nrg

Dati tc

Massari e curva mea

Posted

se vede ca ai scripter nu?:) cam rau fara mine

Daca nu ai cu ce sa il ajuti nu mai posta..

mai man..

Ia pune sus in script

[pawn]new Float:X, Float:Y, Float:Z;[/pawn]

si sterge restu care le mai ai..iti da acel warning pentru ca ai mai multi de

[pawn]new Float:X, Float:Y, Float:Z;[/pawn]

in gm

Massari e curva mea

Posted

(La Inceputul Scriptului)

[pawn]

new Float:X, Float:Y, Float:Z, Float: Ang;

new pNRG[MAX_PLAYERS];

[/pawn]

La >>public OnPlayerCommandText(playerid, cmdtext[])<<

[pawn]

}

if (strcmp("/nrg", cmdtext, true, 10) == 0)

{

new Float:X,Float:Y,Float:Z;

GetPlayerPos(playerid,X,Y,Z);

PutPlayerInVehicle(playerid,CreateVehicle(522,X,Y,Z,0,-1,-1,-1),0);

SendClientMessage(playerid, 0xFFFFFFFF, "{00C0FF}Enjoi Your NRG Personal!!!");

// Do something here

return 1;

}[/pawn]

(Ar Trebui Sa Arate Cam Asa)

[pawn]

new Float:X, Float:Y, Float:Z, Float: Ang;

new pNRG[MAX_PLAYERS];

OnPlayerCommandText(playerid, cmdtext[])

}

if (strcmp("/nrg", cmdtext, true, 10) == 0)

{

new Float:X,Float:Y,Float:Z;

GetPlayerPos(playerid,X,Y,Z);

PutPlayerInVehicle(playerid,CreateVehicle(522,X,Y,Z,0,-1,-1,-1),0);

SendClientMessage(playerid, 0xFFFFFFFF, "{00C0FF}Enjoi Your NRG Personal!!!");

// Do something here

return 1;

}

return 0;

}

[/pawn]

kAdmin progress - 84%

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.