Problema /gotoxyz
#1

Imi da aceste erori .
C:\Users\User\Desktop\De toate\SAMP\New folder\gamemodes\redzmaxro.pwn(36044) : error 017: undefined symbol "SendUsage"
C:\Users\User\Desktop\De toate\SAMP\New folder\gamemodes\redzmaxro.pwn(36051) : error 017: undefined symbol "SendUsage"
C:\Users\User\Desktop\De toate\SAMP\New folder\gamemodes\redzmaxro.pwn(3605 : error 017: undefined symbol "SendUsage"
C:\Users\User\Desktop\De toate\SAMP\New folder\gamemodes\redzmaxro.pwn(36065) : error 017: undefined symbol "SendUsage"
C:\Users\User\Desktop\De toate\SAMP\New folder\gamemodes\redzmaxro.pwn(36082) : error 017: undefined symbol "SendError"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.


Comanda este aceasta.
//-----------------------------------------Comanda-----------------------------------------//
if(strcmp(cmd, "/gotoxyz", true) == 0)//by DMC
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 6)
{
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendUsage(playerid,"/gotoxyz [x] [y] [z] [interior]");
return 1;
}
new x = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendUsage(playerid,"/gotoxyz [x] [y] [z] [interior]");
return 1;
}
new y = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendUsage(playerid,"/gotoxyz [x] [y] [z] [interior]");
return 1;
}
new z = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendUsage(playerid,"/gotoxyz [x] [y] [z] [interior]");
return 1;
}
new interior = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 3)
{
SetPlayerPos(playerid, x, y, z);
format(string,sizeof(string),"Ai fost teleportat la coordonatele x = %d, y = %d, z = %d, interior %d.",x,y,z,interior);
SendClientMessage(playerid, COLOR_WHITE, string);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,interior);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "{C8D4D4}Adm{DB8E12}Warning:{FFFFFF} Admin %s s-a teleportat. (/gotoxyz)", sendername);
ABroadCast(COLOR_LIGHTRED,string,5);
}
else
{
SendError(playerid,cmd);
}
}
return 1;
}
//-----------------------------------------Comanda-----------------------------------------//

Daca vreti sa-mi explicati cum sa rezolva asta , sunt incepator .
Reply
#2

Inlocuieste SendUsage cu SendClientMessage(playerid, -1, "mesajul in sine");
Sau:

pawn Код:
stock SendUsage(playerid, const message[])
{
    SendClientMessage(playerid, COLOR_USAGE, message);
}
Reply
#3

Acum mai da doar asta , C:\Users\User\Desktop\De toate\SAMP\New folder\gamemodes\redzmaxro.pwn(36082) : error 017: undefined symbol "SendError"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#4

pawn Код:
stock SendError(playerid, string[])
{
    new
        strings[130]
    ;
    format(strings, sizeof strings, "ERROR: %s", string);
    return SendClientMessage(playerid, COLOR_RED, strings);
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)