public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/skydive",true)==0)
SetPlayerPos(playerid,-2342.1726,-1176.2717,2145.3945);
GivePlayerWeapon(playerid, 46, 1);
return 1;
}
if(strcmp(cmd, "/cmds", true) == 0) {
SendPlayerFormattedText(playerid,"to spawn a car do /carmenu",0);
SendPlayerFormattedText(playerid,".",0);
SendPlayerFormattedText(playerid,".",0);
SendPlayerFormattedText(playerid,".", 0);
SendPlayerFormattedText(playerid,".", 0);
return 1;
}
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Untitled.pwn(290) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Untitled.pwn(292) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Untitled.pwn(293) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Untitled.pwn(294) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Untitled.pwn(295) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Untitled.pwn(296) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.
if(strcmp(cmdtext, "/cmds", true) == 0)
{
SendClientMessage(playerid, COLOR,"to spawn a car do /carmenu");
SendClientMessage(playerid, COLOR,".");
SendClientMessage(playerid, COLOR,".");
SendClientMessage(playerid, COLOR,".");
SendClientMessage(playerid,COLOR,".");
}
Originally Posted by andmeida10
i think u wanna that:
pawn Код:
|
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Untitled.pwn(290) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\Untitled.pwn(298) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/skydive",true)==0)
{ // here...
SetPlayerPos(playerid,-2342.1726,-1176.2717,2145.3945);
GivePlayerWeapon(playerid, 46, 1);
return 1;
}
if(strcmp(cmd, "/cmds", true) == 0) {
SendPlayerFormattedText(playerid,"to spawn a car do /carmenu",0);
SendPlayerFormattedText(playerid,".",0);
SendPlayerFormattedText(playerid,".",0);
SendPlayerFormattedText(playerid,".", 0);
SendPlayerFormattedText(playerid,".", 0);
return 1;
}
Originally Posted by wafffllesss
pawn Код:
|
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/skydive",true)==0)
{
SetPlayerPos(playerid,-2342.1726,-1176.2717,2145.3945);
GivePlayerWeapon(playerid, 46, 1);
return 1;
}
if(strcmp(cmd, "/cmds", true) == 0)
{
SendPlayerFormattedText(playerid,"to spawn a car do /carmenu",0);
SendPlayerFormattedText(playerid,".",0);
SendPlayerFormattedText(playerid,".",0);
SendPlayerFormattedText(playerid,".", 0);
SendPlayerFormattedText(playerid,".", 0);
return 1;
}
return 0;
}