help with errors
#1

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;
}
Код:
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.
Reply
#2

i think u wanna that:

pawn Код:
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,".");
}
Reply
#3

Quote:
Originally Posted by andmeida10
i think u wanna that:

pawn Код:
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,".");
}
Код:
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.
Reply
#4

pawn Код:
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;
}
Reply
#5

Quote:
Originally Posted by wafffllesss
pawn Код:
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;
}
lots of errors
Reply
#6

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;
}
Reply
#7

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext,"/skydive",true))
{
SetPlayerPos(playerid,-2342.1726,-1176.2717,2145.3945);
GivePlayerWeapon(playerid, 46, 1);
return 1;
}
if(!strcmp(cmdtext, "/cmds", true))
{
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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)