22.08.2012, 12:57
Hello again,
I've got stuck on another command refusing to work, just simply trying to define the username of the person who does "/ready"
Errors:
Please can somebody write me the fixed command?
Thanks
I've got stuck on another command refusing to work, just simply trying to define the username of the person who does "/ready"
Код:
// NEW GUN RELOAD COMMAND - MADE BY MATT //
if(strcmp(cmd, "/ready", true) == 0)
{
// Gets the players name
new string1[256], sendername[MAX_PLAYER_NAME];
// The animations for the reload guns.
OnePlayAnim(playerid,"UZI","UZI_reload",4.0,0,0,0,0,0);
// Sends the client message, to all.
format(string1, sizeof(string1), "%s has clicked off his safety.", sendername);
ProxDetector(30.0, playerid, string1, COLOR_LIGHTBLUE);
return 1;
}
// END OF NEW RELOAD GUN COMMAND //
Код:
C:\Users\matthew\Desktop\Sep 2012\gamemodes\larp.pwn(27923) : warning 219: local variable "sendername" shadows a variable at a preceding level C:\Users\matthew\Desktop\Sep 2012\gamemodes\larp.pwn(27930) : warning 202: number of arguments does not match definition C:\Users\matthew\Desktop\Sep 2012\gamemodes\larp.pwn(27930) : warning 202: number of arguments does not match definition C:\Users\matthew\Desktop\Sep 2012\gamemodes\larp.pwn(27930) : warning 202: number of arguments does not match definition C:\Users\matthew\Desktop\Sep 2012\gamemodes\larp.pwn(27930) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Warnings.
Thanks

