26.02.2012, 13:54
Hi, this is the warning:
And here is the part with the problem:
Код:
C:\Users\Mitchell\Desktop\server\gamemodes\SumoGM.pwn(1604) : warning 219: local variable "string" shadows a variable at a preceding level
pawn Код:
if(cars[playerid]>0){
new string[128];//1604
cars[playerid]--;
format(string,sizeof(string),"It worked! You still have %i cars left!",cars[playerid]);
SendClientMessage(playerid,COLOR_LIGHTGREEN,string);}