CMD:lv(playerid,params[]){ if(DM[playerid] == true) return SendClientMessage(playerid,0x6B8E23AA,\"DM zónába vagy elöször lépj ki\"); if(IsPlayerInAnyVehicle(playerid)){SetVehiclePos(GetPlayerVehicleID(playerid),2165.0928,1845.8403,10.8203);SetVehicleZAngle(GetPlayerVehicleID(playerid),84.9019);}else{ SetPlayerPos(playerid,2165.0928,1845.8403,10.8203); SetPlayerFacingAngle(playerid,84.9019);} SendClientMessage(playerid, 0x6B8E23AA, \"Üdv LV-ben\"); return 1;}
HEllo pls segits mert elakadtam ebben mi lehet a hiba ??[pawn]{ if (dialogid == 15 ) { if (!response) { SendClientMessage ( playerid, 0xFF0000FF, \"Kiléptél \" ); } if (listitem == 0) { if(GetPlayerMoney(playerid) < 100000) { SendClientMessage(playerid,COLOR_BLUE,\"Nincs elég pénzed enyi kell: $100.000\"); } else { SendClientMessage ( playerid, 0xFF0000FF, \"Sikeresen vettél 10 pontot!\" ); SetPlayerScore(playerid, GetPlayerScore(playerid)+10); GivePlayerMoney(playerid, -100000); } } if (listitem == 1) { if(GetPlayerMoney(playerid) < 250000) { SendClientMessage(playerid,COLOR_BLUE,\"Nincs elég pénzed enyi kell: $250.000\"); } else { SendClientMessage ( playerid, 0xFF0000FF, \"Sikeresen vettél 20 pontot!\" ); SetPlayerScore(playerid, GetPlayerScore(playerid)+20); GivePlayerMoney(playerid, -250000); } } if (listitem == 2) { if(GetPlayerMoney(playerid) < 350000) { SendClientMessage(playerid,COLOR_BLUE,\"Nincs elég pénzed enyi kell: $300.000\"); } else { SendClientMessage ( playerid, 0xFF0000FF, \"Sikeresen vettél 30 pontot!\" ); SetPlayerScore(playerid, GetPlayerScore(playerid)+30); GivePlayerMoney(playerid, -350000); } if (listitem == 3) { if(GetPlayerMoney(playerid) < 450000) { SendClientMessage(playerid,COLOR_BLUE,\"Nincs elég pénzed enyi kell: $450.000\"); } else { SendClientMessage ( playerid, 0xFF0000FF, \"Sikeresen vettél 40 pontot!\" ); SetPlayerScore(playerid, GetPlayerScore(playerid)+40); GivePlayerMoney(playerid, -450000); } if (listitem == 4) { if(GetPlayerMoney(playerid) < 550000) { SendClientMessage(playerid,COLOR_BLUE,\"Nincs elég pénzed enyi kell: $550.000\"); } else { SendClientMessage ( playerid, 0xFF0000FF, \"Sikeresen vettél 50 pontot!\" ); SetPlayerScore(playerid, GetPlayerScore(playerid)+50); GivePlayerMoney(playerid, -550000); } } if (listitem == 5) { if(GetPlayerMoney(playerid) < 650000) { SendClientMessage(playerid,COLOR_BLUE,\"Nincs elég pénzed enyi kell: $650.000\"); } else { SendClientMessage ( playerid, 0xFF0000FF, \"Sikeresen vettél 60 pontot!\" ); SetPlayerScore(playerid, GetPlayerScore(playerid)+60); GivePlayerMoney(playerid, -650000); } } if (listitem == 6) { if(GetPlayerMoney(playerid) < 750000) { SendClientMessage(playerid,COLOR_BLUE,\"Nincs elég pénzed enyi kell: $750.000\"); } else { SendClientMessage ( playerid, 0xFF0000FF, \"Sikeresen vettél 70 pontot!\" ); SetPlayerScore(playerid, GetPlayerScore(playerid)+70); GivePlayerMoney(playerid, -750000); } } if (listitem == 7) { if(GetPlayerMoney(playerid) < 850000) { SendClientMessage(playerid,COLOR_BLUE,\"Nincs elég pénzed enyi kell: $850.000\"); } else { SendClientMessage ( playerid, 0xFF0000FF, \"Sikeresen vettél 80 pontot!\" ); SetPlayerScore(playerid, GetPlayerScore(playerid)+80); GivePlayerMoney(playerid, -850000); } } if (listitem == { if(GetPlayerMoney(playerid) < 950000) { SendClientMessage(playerid,COLOR_BLUE,\"Nincs elég pénzed enyi kell: $950.000\"); } else { SendClientMessage ( playerid, 0xFF0000FF, \"Sikeresen vettél 90 pontot!\" ); SetPlayerScore(playerid, GetPlayerScore(playerid)+90); GivePlayerMoney(playerid, -950000); } } if (listitem == 9) { if(GetPlayerMoney(playerid) < 1100000) { SendClientMessage(playerid,COLOR_BLUE,\"Nincs elég pénzed enyi kell: $1.100.000\"); } else { SendClientMessage ( playerid, 0xFF0000FF, \"Sikeresen vettél 100 pontot!\" ); SetPlayerScore(playerid, GetPlayerScore(playerid)+10); GivePlayerMoney(playerid, -1100000); }[/pawn]és ez pedig az OnPlayerCommandText [pawn]if (strcmp(\"/score-vétel\", cmdtext, true, 10) == 0){ ShowPlayerDialog ( playerid, 9, DIALOG_STYLE_LIST, \"Pont vétel:\", \"10 Pont (100.000) Ft\\n20 Pont (250.000) Ft\\n30 Pont (350.000) Ft\\n40 Pont (450.000) Ft\\n50 Pont (550.000) Ft\\n60 Pont (650.000) Ft\\n70 Pont (750.000) Ft\\n80 Pont (850.000) Ft\\n90 Pont (950.000) Ft\\n100 Pont (1.100.000) Ft\",\"Megvesz\",\"Mégse\"); return 1; }[/pawn]