21.10.2011, 17:33
Quote:
|
Changed it to this and now I'm getting these errors:
E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4094) : error 017: undefined symbol "giveplayerid" E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4096) : error 010: invalid function or declaration E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4099) : error 010: invalid function or declaration E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4101) : error 010: invalid function or declaration E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4104) : error 010: invalid function or declaration E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4106) : error 010: invalid function or declaration E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4110) : error 010: invalid function or declaration E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4115) : error 021: symbol already defined: "format" E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(411 : error 021: symbol already defined: "format"E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4121) : error 010: invalid function or declaration E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4123) : error 010: invalid function or declaration Original dcmd_pm taken from the gamemode |
pawn Код:
dcmd_pm(playerid, params[])
{
new str, id,string[128];
if(sscanf(params, "us[128]", id, str)) return SendClientMessage(playerid, -1, "ERROR: /pm ID Message");
format(string, sizeof(string), "PM to %i: %s", id, str); // %i will return the ID of the player
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "PM from %i: %s", playerid, str);
SendClientMessage(id, -1, string);
return 1;
}



: error 021: symbol already defined: "format"