[HELP] Problem /gotoxyz
#1

It gives these errors.
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.


Order is.
//-----------------------------------------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-----------------------------------------//

If you want to explain to me how to solve this newbie.
Reply
#2

well im not pro scripting but u must #define the words u whrite like "SendError" and "SendUsage". Replace them with SendCLientMessage and make red color for error .. and usage choose another color.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)