Command is dead
#6

hey cake it possibly works i didnt know how to define it cause everytime i defined what it said i needed to define and it gave me those last errors when i paste ur regular command so if it works i need a exact way to define it so i dont get any errors or warnings can u read not to be rude but if u read it u can see i tryed to define some things and i got 2 errors and 1 warning
please reread this topic if u dont know and tell me a way to define this right plz and the command is
pawn Код:
if(strcmp(cmd, "/givepack", true) == 0)
{
  if(IsPlayerConnected(playerid))
  {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0x00FF00FF, "USAGE: /givepack [playerid/PartOfName] ");
return 1;
}
new para1;
para1 = ReturnUser(tmp))
tmp = strtok(cmdtext, idx);
  if(IsPlayerConnected(para1))
  {
    if(para1 != INVALID_PLAYER_ID)
    {
GivePlayerWeapon(playerid, 24, 9999); // dont
GivePlayerWeapon(playerid, 27, 9999); // touch
GivePlayerWeapon(playerid, 29, 9999); // these
GivePlayerWeapon(playerid, 31, 9999); // they
GivePlayerWeapon(playerid, 24, 9999); // work
GivePlayerWeapon(playerid, 46, 9999); // just
SetPlayerHealth(playerid, 100); // fine
SetPlayerArmour(playerid, 100); // :P
SendClientMessage(playerid, 0x00FF00FF, "The admins gave you a nice pack!");
SendClientMessage(playerid, 0x00FF00FF, "And healed you and gave you armor!");
SendClientMessage(playerid, 0x00FF00FF, "Remember, Always treat admins with repect!");

}
}
}
return 1;
}
BTW i did not make this command and take no credit with it
and heres the part that it says the errors / warning are in
Код:
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0x00FF00FF, "USAGE: /givepack [playerid/PartOfName] ");
return 1;
}
new para1;
para1 = ReturnUser(tmp))
heres a quote of the errors that i get when i just paste cake's command
Quote:

C:\Users\Windows Vista\sampserver\gamemodes\bare.pwn(39) : error 017: undefined symbol "tmp"
C:\Users\Windows Vista\sampserver\gamemodes\bare.pwn(40) : error 017: undefined symbol "tmp"
C:\Users\Windows Vista\sampserver\gamemodes\bare.pwn(42) : error 017: undefined symbol "COLOR_GRAD2"
C:\Users\Windows Vista\sampserver\gamemodes\bare.pwn(46) : error 017: undefined symbol "ReturnUser"
C:\Users\Windows Vista\sampserver\gamemodes\bare.pwn(47) : error 017: undefined symbol "tmp"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Reply


Messages In This Thread
Command is dead - by [WF]Demon - 26.11.2009, 01:08
Re: Command is dead - by miokie - 26.11.2009, 01:15
Re: Command is dead - by Daniel_Truk - 26.11.2009, 20:25
Re: Command is dead - by shady91 - 26.11.2009, 20:26
Re: Command is dead - by Daniel_Truk - 26.11.2009, 20:35
Re: Command is dead - by [WF]Demon - 26.11.2009, 22:29
Re: Command is dead - by Hiitch - 27.11.2009, 01:04
Re: Command is dead - by [WF]Demon - 27.11.2009, 07:41
Re: Command is dead - by Daniel_Truk - 27.11.2009, 12:59
Re: Command is dead - by [WF]Demon - 27.11.2009, 18:01

Forum Jump:


Users browsing this thread: 2 Guest(s)