if(strcmp(cmdtext,"/Rampa",true)==0) { new vehicleid = GetPlayerVehicleID(playerid); new State = GetPlayerState(playerid); if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER) { GameTextForPlayer(playerid,"Bem-Vindo(a) a Rampa!",4000,6); LinkVehicleToInterior(vehicleid,0); SetPlayerInterior(playerid,0); return SetVehiclePos(vehicleid,2158.4670410156 1042.2408447266 2267.8205566406); } SetPlayerPos(playerid,2158.4670410156 1042.2408447266 2267.8205566406); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid,"Bem-Vindo(a) a Rampa!",4000,6); return 1; }
x=2158.4670410156 y=1042.2408447266 z=2267.8205566406);
if (strcmp("/teles", cmdtext, true, 10) == 0) { SendClientMessage(playerid,COR,"Bem-vindo ao coiso dos comandos"); SendClientMessage(playerid,COR,"/o cmd : o k faz"); SendClientMessage(playerid,COR,"/o cmd : o k faz"); SendClientMessage(playerid,COR,"/o cmd : o k faz"); SendClientMessage(playerid,COR,"/o cmd : o k faz"); SendClientMessage(playerid,"/o cmd : o k faz"); }
Originally Posted by andmeida10
isso vc coloca no OnPlayerCommandText...
criar uma lista de comandos: Код:
if (strcmp("/teles", cmdtext, true, 10) == 0) { SendClientMessage(playerid,"Bem-vindo ao coiso dos comandos"); SendClientMessage(playerid,"/o cmd : o k faz"); SendClientMessage(playerid,"/o cmd : o k faz"); SendClientMessage(playerid,"/o cmd : o k faz"); SendClientMessage(playerid,"/o cmd : o k faz"); SendClientMessage(playerid,"/o cmd : o k faz"); } |
Originally Posted by andmeida10
isso vc coloca no OnPlayerCommandText...
criar uma lista de comandos: Код:
if (strcmp("/teles", cmdtext, true, 10) == 0) { SendClientMessage(playerid,COR,"Bem-vindo ao coiso dos comandos"); SendClientMessage(playerid,COR,"/o cmd : o k faz"); SendClientMessage(playerid,COR,"/o cmd : o k faz"); SendClientMessage(playerid,COR,"/o cmd : o k faz"); SendClientMessage(playerid,COR,"/o cmd : o k faz"); SendClientMessage(playerid,"/o cmd : o k faz"); } |
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) if(strcmp(cmdtext,"/Rampa",true)==0) { new vehicleid = GetPlayerVehicleID(playerid); new State = GetPlayerState(playerid); if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER) { GameTextForPlayer(playerid,"Bem-Vindo(a) a Rampa!",4000,6); LinkVehicleToInterior(vehicleid,0); SetPlayerInterior(playerid,0); return SetVehiclePos(vehicleid,2158.4670410156 1042.2408447266 2267.8205566406); } SetPlayerPos(playerid,2158.4670410156 1042.2408447266 2267.8205566406); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid,"Bem-Vindo(a) a Rampa!",4000,6); return 1; } { // Do something here return 1; } return 0; }
C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(151) : error 029: invalid expression, assumed zero C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(151) : warning 217: loose indentation C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(151) : error 029: invalid expression, assumed zero C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(164) : error 001: expected token: ",", but found "-rational value-" C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(164) : warning 215: expression has no effect C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(164) : error 001: expected token: ";", but found "-rational value-" C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(164) : warning 215: expression has no effect C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(164) : error 001: expected token: ";", but found ")" C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(164) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.
{ if (strcmp("/mycommand", cmdtext, true, 10) == 0)
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
Originally Posted by andmeida10
tira isto:
Код:
{ if (strcmp("/mycommand", cmdtext, true, 10) == 0) agora ja deve dar |
C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(159) : error 001: expected token: ",", but found "-rational value-" C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(159) : warning 215: expression has no effect C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(159) : error 001: expected token: ";", but found "-rational value-" C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(159) : warning 215: expression has no effect C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(159) : error 001: expected token: ";", but found ")" C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(159) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/Rampa",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid,"Bem-Vindo(a) a Rampa!",4000,6);
LinkVehicleToInterior(vehicleid,0);
SetPlayerInterior(playerid,0);
return SetVehiclePos(vehicleid,2158.4670410156 1042.2408447266 2267.8205566406);
}
SetPlayerPos(playerid,2158.4670410156 1042.2408447266 2267.8205566406);
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid,"Bem-Vindo(a) a Rampa!",4000,6);
return 1;
}
return 0;
}
Originally Posted by [VGS
speliarmos_OC ]
pawn Код:
|
C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(159) : error 001: expected token: ",", but found "-rational value-" C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(159) : warning 215: expression has no effect C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(159) : error 001: expected token: ";", but found "-rational value-" C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(159) : warning 215: expression has no effect C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(159) : error 001: expected token: ";", but found ")" C:\Documents and Settings\Cliente\Desktop\Revolution GTA Online\SAMP 0.3 Server\filterscripts\Revolution_GTA_Online.pwn(159) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.