Quote:
Originally Posted by Youice
hopeless you didn't change any thing in the code , it's just like you changed the code appearance nothing else and actually and I don't want to decreed, but it's kinda function(stocks are different kind of functions that not in need"forwards" and in the same time it can't be called in some re-calls like "Timers")
Try this:
pawn Код:
stock CreateNitro(Float:x,Float:y,Float:z,VirtualWorld) { Create3DTextLabel("[Nitro]",0xAA3333AA,x,y,z,20,VirtualWorld); for(new i = 0; i < MAX_PLAYERS; i++) //set a for-loop and loop through all the admins { if(PInfo[i][pAdmin] >= 1 &&IsPlayerInRangeOfPoint(i,5,x,y,z)) // edit this line to your basics { if(IsPlayerInAnyVehicle(i)) { SendClientMessage(i,0xAA3333AA,"Youa are in"); AddVehicleComponent(GetPlayerVehicleID(i),1010); } } } return 1; }
|
You did just the same thing ,put on the different cloth
and stock will not be executed if they are not called ,so it matters