Tele error?
#1

this is my tele script:

CMD:bumpercars(playerid,params[]) {
new string[256];
new kuldoneve[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!");
DestroyVehicle(GetPlayerVehicleID(playerid));
CarSpawner(playerid,539);
TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid);
tseconds[playerid] = 6;
format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1);
if(PlayerInfo[playerid][Level] == 0) SendClientMessage(playerid,COLOR_LIGHTBLUE, tstring);
vCount[playerid] = 1;
Tx[playerid] =-2560.5032;
Ty[playerid] =1363.4918;
Tz[playerid] =28.8554;
Ti[playerid] = 0;
format(telestring,43,"~r~< ~b~Bumbper ~w~car ~r~>");
GetPlayerName(playerid, kuldoneve, sizeof(kuldoneve));
format(string, sizeof(string), "{FF0000}[Palmstunting[V.1.0] Info]:{46BEE6}%s just teleported to Las Ventures Bumper Cars {FF0000} /bumpercarst!", kuldoneve, playerid);
SendClientMessageToAll(COLOR_GREEN, string);
return 1;

I can change everyting but when i change the command ( here cmd:bumpercars ) the tele does not work anymore? Help me and get repp++
Tixxt is online now Add to Tixxt's Reputation Report Post
Reply
#2

PHP код:
CMD:yournewcommandhere(playerid,params[]) {
 new 
string[256];
 new 
kuldoneve[MAX_PLAYER_NAME];
 if(
PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!");
 
DestroyVehicle(GetPlayerVehicleID(playerid));
 
CarSpawner(playerid,539);
 
TeleTimer[playerid] = SetTimerEx("ttimer"1000true"i",playerid);
 
tseconds[playerid] = 6;
 
format(tstring,45,"You Must wait %d seconds before teleporting"tseconds[playerid]-1);
 if(
PlayerInfo[playerid][Level] == 0SendClientMessage(playerid,COLOR_LIGHTBLUEtstring);
 
vCount[playerid] = 1;
 
Tx[playerid] =-2560.5032;
 
Ty[playerid] =1363.4918;
 
Tz[playerid] =28.8554;
 
Ti[playerid] = 0;
 
format(telestring,43,"~r~< ~b~Bumbper ~w~car ~r~>");
 
GetPlayerName(playeridkuldonevesizeof(kuldoneve));
 
format(stringsizeof(string), "{FF0000}[Palmstunting[V.1.0] Info]:{46BEE6}%s just teleported to Las Ventures Bumper Cars {FF0000} /bumpercarst!"kuldoneveplayerid);
 
SendClientMessageToAll(COLOR_GREENstring);
 return 
1;

Reply
#3

please press hashtag before posting your codes
Reply
#4

You forgot to add a "}" under return 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)