07.05.2010, 01:38
The script makes a teleport to where the players spawn. I get these error
my script looks like this
any help would b appreciated. btw, i am using the Teleport Generator that some1 on the forums had posted, (cant find the name now)
thx all
Quote:
C:\Users\truckermom\Desktop\Samp stuff\Samp Server\gamemodes\src.pwn(243) : error 029: invalid expression, assumed zero C:\Users\truckermom\Desktop\Samp stuff\Samp Server\gamemodes\src.pwn(243) : error 035: argument type mismatch (argument 2) C:\Users\truckermom\Desktop\Samp stuff\Samp Server\gamemodes\src.pwn(244) : error 029: invalid expression, assumed zero C:\Users\truckermom\Desktop\Samp stuff\Samp Server\gamemodes\src.pwn(244) : error 035: argument type mismatch (argument 2) C:\Users\truckermom\Desktop\Samp stuff\Samp Server\gamemodes\src.pwn(24 : error 029: invalid expression, assumed zero C:\Users\truckermom\Desktop\Samp stuff\Samp Server\gamemodes\src.pwn(24 : error 035: argument type mismatch (argument 2) |
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext,"/Spawn",true)==0) { new vehicleid = GetPlayerVehicleID(playerid); new State = GetPlayerState(playerid); if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER) { GameTextForPlayer(playerid,"You have spawnd again my son/daughter",4000,6); LinkVehicleToInterior(vehicleid,); SetPlayerInterior(playerid,); return SetVehiclePos(vehicleid,2020.1284, 1344.1583, 10.8203); } SetPlayerPos(playerid,2020.1284, 1344.1583, 10.8203); SetPlayerInterior(playerid,); GameTextForPlayer(playerid,"You have spawnd again my son/daughter",4000,6); return 1; } return 0; }
thx all