11.08.2015, 22:42
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/animclear", true)) { ClearAnimations(playerid); return 1; } return 0; }
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/animclear", true)) { ClearAnimations(playerid); return 1; } return 0; }
if (strcmp(cmdtext, "/burnme", true) == 0) { new Float:POS[3]; GetPlayerPos(playerid, POS[0], POS[1], POS[2]); CreateExplosionForPlayer(playerid, POS[0], POS[1], POS[2], 1, 10.0); return 1; }
C:\Users\Waqar\Desktop\z\The Ultimate Freeroam\gamemodes\freeroam.pwn(1154) : error 010: invalid function or declaration C:\Users\Waqar\Desktop\z\The Ultimate Freeroam\gamemodes\freeroam.pwn(1157) : error 021: symbol already defined: "GetPlayerPos" C:\Users\Waqar\Desktop\z\The Ultimate Freeroam\gamemodes\freeroam.pwn(1159) : error 010: invalid function or declaration C:\Users\Waqar\Desktop\z\The Ultimate Freeroam\gamemodes\freeroam.pwn(3926) : warning 203: symbol is never used: "POS" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/animclear", true))
{
ClearAnimations(playerid);
}
else if (!strcmp(cmdtext, "/burnme", true))
{
new Float:POS[3];
GetPlayerPos(playerid, POS[0], POS[1], POS[2]);
CreateExplosionForPlayer(playerid, POS[0], POS[1], POS[2], 1, 10.0);
}
return 1;
}
C:\Users\Waqar\Desktop\z\The Ultimate Freeroam\gamemodes\freeroam.pwn(3936) : error 010: invalid function or declaration C:\Users\Waqar\Desktop\z\The Ultimate Freeroam\gamemodes\freeroam.pwn(3939) : error 021: symbol already defined: "GetPlayerPos" C:\Users\Waqar\Desktop\z\The Ultimate Freeroam\gamemodes\freeroam.pwn(3941) : error 010: invalid function or declaration C:\Users\Waqar\Desktop\z\The Ultimate Freeroam\gamemodes\freeroam.pwn(3943) : warning 203: symbol is never used: "POS" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
// [ DEVELOPMENT GAMEMODE ]
// INCLUDES:
#include <a_samp>
#include <zcmd>
// MAIN:
main()
{
print("Development Mode: blank.amx");
}
// CALLBACKS:
public OnGameModeInit()
{
return 1;
}
public OnGameModeExit()
{
return 1;
}
// COMMANDS:
CMD:animclear(playerid, params[])
{
ClearAnimations(playerid);
return 1;
}
CMD:burnme(playerid, params[])
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateExplosionForPlayer(playerid, x, y, z, 1, 10.0);
return 1;
}