Not sure what to do with this tele error.
#1

The script makes a teleport to where the players spawn. I get these error
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)

my script looks like this
Код:
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;
}
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
Reply


Messages In This Thread
Not sure what to do with this tele error. - by alan91330 - 07.05.2010, 01:38
Re: Not sure what to do with this tele error. - by Backwardsman97 - 07.05.2010, 01:43
Re: Not sure what to do with this tele error. - by luigifan9 - 07.05.2010, 01:52

Forum Jump:


Users browsing this thread: 1 Guest(s)