09.05.2017, 11:04
This Script is Awesome I Like This And Work Thanks U soo Much
C:\Users\Kushal's\Desktop\My Server\pawno\include\YSI\..\YSI_Internal\y_funcinc .inc(72) : error 017: undefined symbol "printf" C:\Users\Kushal's\Desktop\My Server\pawno\include\YSI\..\YSI_Internal\y_funcinc .inc(72) : warning 215: expression has no effect C:\Users\Kushal's\Desktop\My Server\pawno\include\YSI\..\YSI_Internal\y_funcinc .inc(72) : error 001: expected token: ";", but found ")" C:\Users\Kushal's\Desktop\My Server\pawno\include\YSI\..\YSI_Internal\y_funcinc .inc(72) : error 029: invalid expression, assumed zero C:\Users\Kushal's\Desktop\My Server\pawno\include\YSI\..\YSI_Internal\y_funcinc .inc(72) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
In which includes folder shall I put the YSI folder? I have one includes folder in the main folder of my server and I have another one in my pawno folder. Sorry for the probably dumb question.
|
CMD:setadmin(playerid, params[])
{
new id, level, name[25], gname[25];
if(sscanf(params, "dd", id, level)) return SendClientMessage(playerid, 0xFF000050, "Usage: /setadmin [playerid] [level]");
if(level > 4 || level < 0) return SendClientMessage(playerid, 0xFF000050, "Invalid Admin Level.");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFF000050, "Player isnot connected");
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, gname, sizeof(gname));
PlayerInfo[id][pAdmin] = level;
format(string, sizeof(string), "%s have setted you as %d level admin", name, level);
SendClientMessage(id, 0xFF0000AA, string);
format(string, sizeof(string), "You have setted %s as %d level admin", gname, level);
SendClientMessage(playerid, 0xFF0000AA, string);
return 1;
}
CMD:setscore(playerid, params[])
{
new id, score, name[25], gname[25];
if(sscanf(params, "dd", id, score)) return SendClientMessage(playerid, 0xFF000050, "Usage: /setscore [playerid] [score]");
if(score > 9999999 || score < 0) return SendClientMessage(playerid, 0xFF000050, "Invalid Scores.");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFF000050, "Player isnot connected");
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, gname, sizeof(gname));
SetPlayerScore(id, score);
format(string, sizeof(string), "%s have setted your score to %d.", name, score);
SendClientMessage(id, 0xFF0000AA, string);
format(string, sizeof(string), "You have setted %s scores to %d.", gname, score);
SendClientMessage(playerid, 0xFF0000AA, string);
return 1;
}
//////onplayerconnect///
LoadUser_%s
to
LoadUser_data