21.10.2011, 14:34
Hi guys,
Currently editing SFCRRPG gamemode and I changed the script in the dcmd_pm
because It was always returning back to ID 0.
here is the code:
dcmd_pm(playerid, params[]) {
new str[128], id,
string[168];
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(giveplayerid, -1, string); return 1; }
I'm getting these errors:
E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4093) : error 037: invalid string (possibly non-terminated string)
E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4093) : warning 215: expression has no effect
E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4093) : error 001: expected token: ";", but found ")"
E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4093) : error 029: invalid expression, assumed zero
E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4093) : fatal error 107: too many error messages on one line
Can anyone tell me what is wrong with the script above ?
Currently editing SFCRRPG gamemode and I changed the script in the dcmd_pm
because It was always returning back to ID 0.
here is the code:
dcmd_pm(playerid, params[]) {
new str[128], id,
string[168];
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(giveplayerid, -1, string); return 1; }
I'm getting these errors:
E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4093) : error 037: invalid string (possibly non-terminated string)
E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4093) : warning 215: expression has no effect
E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4093) : error 001: expected token: ";", but found ")"
E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4093) : error 029: invalid expression, assumed zero
E:\SA-MP Servers\samp03csvr_R2-2_win32\gamemodes\SFCnR.pwn(4093) : fatal error 107: too many error messages on one line
Can anyone tell me what is wrong with the script above ?