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
#2

Lol, you didn't think these lines would be a problem?

pawn Код:
LinkVehicleToInterior(vehicleid,);
SetPlayerInterior(playerid,);
There needs to be a number there.

pawn Код:
LinkVehicleToInterior(vehicleid,1);
SetPlayerInterior(playerid,0);

//Or whatever
Reply
#3

Quote:
Originally Posted by Baked-Banana
Lol, you didn't think these lines would be a problem?

pawn Код:
LinkVehicleToInterior(vehicleid,);
SetPlayerInterior(playerid,);
There needs to be a number there.

pawn Код:
LinkVehicleToInterior(vehicleid,1);
SetPlayerInterior(playerid,0);

//Or whatever
Haha
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)