19.07.2009, 05:21
i want do that but the pawno say this error
maps.pwn(329) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
maps.pwn(334) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
maps.pwn(690) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
maps.pwn(695) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
on thop of the script
public OnPlayerCommandText(playerid, cmdtext[])
what supose do the script, teleport player to place spawn a car and put the player in the car, if a car already exist destroy the car and spawn a new.
=S im bad xD
maps.pwn(329) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
maps.pwn(334) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
maps.pwn(690) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
maps.pwn(695) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
on thop of the script
Код:
new vehicleid=0;
Код:
if (strcmp("/chocones", cmdtext, true, 10) == 0) { SetPlayerPos(playerid,-2059.9880,-211.7617,56.3695); ResetPlayerWeapons(playerid); SetPlayerInterior(playerid,0); new Float:X,Float:Y,Float:Z, Float:Angle; GetPlayerPos(playerid, X,Y,Z); SendClientMessage(playerid,0x99ccff,"Mapa por [SOB]Chris"); if (vehicleid==0) { vehicleid=CreateVehicle(539,X,Y,Z,Angle,6,0,-1); PutPlayerInVehicle(playerid,vehicleid,0); } else { DestroyVehicle(vehicleid); vehicleid=CreateVehicle(539,X,Y,Z,Angle,6,0,-1); PutPlayerInVehicle(playerid,vehicleid,0); } return 1; }
=S im bad xD