CMD:stats(playerid,params[]){if(PlayerInfo[playerid][LoggedIn] >=1){ new kills, deaths, admin, money, coins, vip, playername[MAX_PLAYER_NAME], string[128], string1[128]; kills = PlayerInfo[playerid][Kills]; deaths = PlayerInfo[playerid][Deaths]; admin = PlayerInfo[playerid][Admin]; money = PlayerInfo[playerid][Moneys]; coins = PlayerInfo[playerid][Coins]; vip = PlayerInfo[playerid][Vip]; GetPlayerName(playerid, playername, sizeof(playername)); SendClientMessage(playerid,0x36b82bAA,\"Statisztikád\"); format(string, sizeof(string), \"Név: %s (%d)\",playername,playerid); SendClientMessage(playerid,COLOR_WHITE,string); format(string1, sizeof(string1), \"Ölések: %d | Halálok: %d | Admin szinted: %d | Pénzed: %d | Pontod: %d | VIP szinted: %d\",kills,deaths,admin,money,coins,vip); SendClientMessage(playerid,COLOR_WHITE,string1);}else return SendClientMessage(playerid,COLOR_RED,\"Hiba : Nem vagy bejelentkezve, hogy akarod így megtudni az adataidat, tesó? -_-\");return 1;}
CMD:stats(playerid,params[]) { if(PlayerInfo[playerid][LoggedIn] >=1) { new kills, deaths, admin, money, coins, vip, playername[MAX_PLAYER_NAME], string[128], string1[128]; kills = PlayerInfo[playerid][Kills]; deaths = PlayerInfo[playerid][Deaths]; admin = PlayerInfo[playerid][Admin]; money = PlayerInfo[playerid][Moneys]; score = PlayerInfo[playerid][score]; coins = PlayerInfo[playerid][Coins]; vip = PlayerInfo[playerid][Vip]; GetPlayerName(playerid, playername, sizeof(playername)); SendClientMessage(playerid,0x36b82bAA,\"Statisztikád\"); format(string, sizeof(string), \"Név: %s (%d)\",playername,playerid); SendClientMessage(playerid,COLOR_WHITE,string); format(string1, sizeof(string1), \"Ölések: %d | Halálok: %d | Admin szinted: %d | Pénzed: %d | Pontod: %d | VIP szinted: %d\",kills,deaths,admin,money,score,coins,vip); SendClientMessage(playerid,COLOR_WHITE,string1); } else return SendClientMessage(playerid,COLOR_RED,\"Hiba : Nem vagy bejelentkezve, hogy akarod így megtudni az adataidat, tesó? -_-\"); return 1; }
C:\\Users\\Peti\\Desktop\\SAMP szerver\\gamemodes\\NW.pwn(693) : error 017: undefined symbol \"score\"C:\\Users\\Peti\\Desktop\\SAMP szerver\\gamemodes\\NW.pwn(693) : warning 215: expression has no effectC:\\Users\\Peti\\Desktop\\SAMP szerver\\gamemodes\\NW.pwn(700) : error 017: undefined symbol \"score\"C:\\Users\\Peti\\Desktop\\SAMP szerver\\gamemodes\\NW.pwn(704) : warning 217: loose indentationC:\\Users\\Peti\\Desktop\\SAMP szerver\\gamemodes\\NW.pwn(706) : error 054: unmatched closing brace (\"}\")Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase3 Errors.ezeket írja
Rizsa Szöveg Krumpli Kutya Macska Barátság
Rizsa Szöveg Krumpli Kutya // Itt elveszti a \"fonalat\" a complier, ezért írja ki a warningot, így az ezek után lévõ dolgok nem fognak lefutni. Megoldás: szépen egy vonalba hozod õket. Macska Barátság
CMD:stats(playerid,params[]) { if(PlayerInfo[playerid][LoggedIn] >=1) { new kills, deaths, admin, money, score, coins, vip, playername[MAX_PLAYER_NAME], string[128], string1[128]; kills = PlayerInfo[playerid][Kills]; deaths = PlayerInfo[playerid][Deaths]; admin = PlayerInfo[playerid][Admin]; money = PlayerInfo[playerid][Moneys]; score = PlayerInfo[playerid][score]; coins = PlayerInfo[playerid][Coins]; vip = PlayerInfo[playerid][Vip]; GetPlayerName(playerid, playername, sizeof(playername)); SendClientMessage(playerid,0x36b82bAA,\"Statisztikád\"); format(string, sizeof(string), \"Név: %s (%d)\",playername,playerid); SendClientMessage(playerid,COLOR_WHITE,string); format(string1, sizeof(string1), \"Ölések: %d | Halálok: %d | Admin szinted: %d | Pénzed: %d | Pontod: %d | VIP szinted: %d\",kills,deaths,admin,money,score,coins,vip); SendClientMessage(playerid,COLOR_WHITE,string1); } else return SendClientMessage(playerid,COLOR_RED,\"Hiba : Nem vagy bejelentkezve, hogy akarod így megtudni az adataidat, tesó? -_-\"); return 1; } igy jó lesz . mivel ez hiányzott belõle : score = PlayerInfo[playerid][score];
CMD:stats(playerid,params[]) { if(PlayerInfo[playerid][LoggedIn] >=1) { new kills, deaths, admin, money, score, coins, vip, playername[MAX_PLAYER_NAME], string[128], string1[128]; kills = PlayerInfo[playerid][Kills]; deaths = PlayerInfo[playerid][Deaths]; admin = PlayerInfo[playerid][Admin]; money = PlayerInfo[playerid][Moneys]; score = PlayerInfo[playerid][score]; coins = PlayerInfo[playerid][Coins]; vip = PlayerInfo[playerid][Vip]; GetPlayerName(playerid, playername, sizeof(playername)); SendClientMessage(playerid,0x36b82bAA,\"Statisztikád\"); format(string, sizeof(string), \"Név: %s (%d)\",playername,playerid); SendClientMessage(playerid,COLOR_WHITE,string); format(string1, sizeof(string1), \"Ölések: %d | Halálok: %d | Admin szinted: %d | Pénzed: %d | Pontod: %d | VIP szinted: %d\",kills,deaths,admin,money,score,coins,vip); SendClientMessage(playerid,COLOR_WHITE,string1); } else return SendClientMessage(playerid,COLOR_RED,\"Hiba : Nem vagy bejelentkezve, hogy akarod így megtudni az adataidat, tesó? -_-\"); return 1; }
format(string1, sizeof(string1), \"Ölések: %d | Halálok: %d | Admin szinted: %d | Pénzed: %d | Pontod: %d | VIP szinted: %d\",PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths],PlayerInfo[playerid][Admin],PlayerInfo[playerid][Moneys],PlayerInfo[playerid][score],PlayerInfo[playerid][Coins],PlayerInfo[playerid][Vip]); }
CMD:score(playerid, params[]) return PlayerInfo[playerid][Coins] = 548; return 1; }