print("<something to recognise, maybe numbers>");
print("3");
print("<something to recognise, maybe numbers>");
dcmd_l(playerid,params[]) { if(LoggedIn[playerid] == 1) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(params)) return SendClientMessage(playerid, red, " Correct use: /l [text] - LOCAL"); new str[128]; new string[256]; GetPlayerName(playerid, str, sizeof(str)); format(string,sizeof(string),"> CHAT > LOCAL > %s > %s !",str,params); format(str, sizeof(str), "%s says '%s'", str, params); print(string); ApplyAnimation(playerid,"MISC","Idle_Chat_02",4.1,0,1,1,1,1); for(new i; i<MAX_PLAYERS; i++) { new Float:x,Float:y, Float:z; GetPlayerPos(playerid,x,y,z); if (PlayerToPoint(7,i,x,y,z)) { return SendClientMessage(i,COLOR_WHITE, str); } if (PlayerToPoint(15,i,x,y,z)) { return SendClientMessage(i,COLOR_GRAYDARK, str); } } return 1; } else return SendClientMessage(playerid,red," You must be logged in to use this command"); }
dcmd_l(playerid,params[]) { print("1"); if(LoggedIn[playerid] == 1) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); print("2"); if(!strlen(params)) return SendClientMessage(playerid, red, " Correct use: /l [text] - LOCAL"); print("3"); new str[128]; new string[256]; GetPlayerName(playerid, str, sizeof(str)); print("4"); format(string,sizeof(string),"> CHAT > LOCAL > %s > %s !",str,params); print("5"); format(str, sizeof(str), "%s says '%s'", str, params); print("6"); print(string); print("7"); ApplyAnimation(playerid,"MISC","Idle_Chat_02",4.1,0,1,1,1,1); for(new i; i<MAX_PLAYERS; i++) print("8"); { new Float:x,Float:y, Float:z; GetPlayerPos(playerid,x,y,z); print("9"); if (PlayerToPoint(7,i,x,y,z)) { print("10"); return SendClientMessage(i,COLOR_WHITE, str); } if (PlayerToPoint(15,i,x,y,z)) { print("11"); return SendClientMessage(i,COLOR_GRAYDARK, str); } } return 1; } print("12"); else return SendClientMessage(playerid,red," You must be logged in to use this command"); }
Originally Posted by Gimax
[TUTORIAL] How to find BUG that CRASHES your server?
[...] 1. Open .pwn of script 2. Find part of script that crashes 3. In part, put Code:
print("<something to recognise, maybe numbers>"); [...] |