-
Posts
82 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
News
Documentation
Posts posted by ZeCo
-
-
Se uita cineva?
-
Totusi, nu am rezolvat..
Inca astept pe cineva sa-mi explice mai bine
-
10 minutes ago, NoNamed said:
Nu ai voie sa ceri comenzi . E simplu sa o faci . Undeva la inceputul gamemode-ului adauga #define DIALOGCARS unnumar . Apoi la comanda /cars adaugi ShowPlayerDialog(playerid, DIALOGCARS , DIALOG_STYLE_LIST, "Masinile tale personale", "1.Masina 1\nMasina 2\nETC"); este foarte simplu .
Asta am facut.
Dar la datele de la masini cum fac?.. Sa-mi apara ceva de gen:
Model: Monster B | Valoare: 90.000.000$ | Culoare 1: 211 Culoare 2: 222 | Incuiata: Da | Numar: LS 06 FFF
-
Nu inteleg ce vrei sa zici.. Daca ma poti ajuta, imi poti face comanda? .
Daca ai timp.
-
Practic eu am pus in loc de ”SendClientMesage” ”ShowPlayerDialog”.
error 035: argument type mismatch (argument 3)
error 035: argument type mismatch (argument 3)
error 035: argument type mismatch (argument 3)
error 035: argument type mismatch (argument 3)
-
Problema intalnita (descriere): Nu reusesc sa fac acesta comanda pe dialog:
if(strcmp(cmd, "/car", true) == 0) { if(IsPlayerConnected(playerid)) { new carkey = PlayerData[playerid][pPcarkey]; new carkey2 = PlayerData[playerid][pPcarkey2]; new carkey3 = PlayerData[playerid][pPcarkey3]; new carkey4 = PlayerData[playerid][pPcarkey4]; new carkey5 = PlayerData[playerid][pPcarkey5]; SendClientMessage(playerid, COLOR_RED," "); SendClientMessage(playerid, COLOR_LIGHTGREEN,"|_______________Masini Personale_______________|"); if(carkey != 999 && carkey != 0) { format(string, sizeof(string), "Slot 1| Model: [%s] Valoare: [%d] Culoare 1: [%d] Culoare 2: [%d] Incuiata: [%d] Numar: [%s] ", CarData[carkey][cDescription], CarData[carkey][cValue], CarData[carkey][cColorOne], CarData[carkey][cColorTwo], CarData[carkey][cLockk], CarData[carkey][cNum]); SendClientMessage(playerid, COLOR_GRAD5,string); } if(carkey2 != 999 && carkey2 != 0) { format(string, sizeof(string), "Slot 2| Model: [%s] Valoare: [%d] Culoare 1: [%d] Culoare 2: [%d] Incuiata: [%d] Numar: [%s] ", CarData[carkey2][cDescription], CarData[carkey2][cValue], CarData[carkey2][cColorOne], CarData[carkey2][cColorTwo], CarData[carkey2][cLockk], CarData[carkey2][cNum]); SendClientMessage(playerid, COLOR_GRAD5,string); } if(carkey3 != 999 && carkey3 != 0) { format(string, sizeof(string), "Slot 3| Model: [%s] Valoare: [%d] Culoare 1: [%d] Culoare 2: [%d] Incuiata: [%d] Numar: [%s] ", CarData[carkey3][cDescription], CarData[carkey3][cValue], CarData[carkey3][cColorOne], CarData[carkey3][cColorTwo], CarData[carkey3][cLockk], CarData[carkey3][cNum]); SendClientMessage(playerid, COLOR_GRAD5,string); } if(carkey4 != 999 && carkey4 != 0) { format(string, sizeof(string), "Slot 4| Model: [%s] Valoare: [%d] Culoare 1: [%d] Culoare 2: [%d] Incuiata: [%d] Numar: [%s] ", CarData[carkey4][cDescription], CarData[carkey4][cValue], CarData[carkey4][cColorOne], CarData[carkey4][cColorTwo], CarData[carkey4][cLockk], CarData[carkey4][cNum]); SendClientMessage(playerid, COLOR_GRAD5,string); } return 1; } return 1; }
Ero(area / rile) / warning-(ul / urile): Mi-a dat 26.
Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Da
Problema compilare GM
in Arhivă probleme
Posted
Problema intalnita (descriere): Imi da 4 erori la un Dialog
Ero(area / rile) / warning-(ul / urile):
C:\Users\Paul\Desktop\GameMode\GameMode\gamemodes\ThePyrex.pwn(33415) : error 029: invalid expression, assumed zero
C:\Users\Paul\Desktop\GameMode\GameMode\gamemodes\ThePyrex.pwn(33415) : error 017: undefined symbol "DialogString"
C:\Users\Paul\Desktop\GameMode\GameMode\gamemodes\ThePyrex.pwn(33415) : error 029: invalid expression, assumed zero
C:\Users\Paul\Desktop\GameMode\GameMode\gamemodes\ThePyrex.pwn(33415) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Liniile de cod / sursa / script-ul(obligatoriu):
//------------------------------------------------------------------------------------------//
if(strcmp(cmd, "/car", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new carkey = PlayerData[playerid][pPcarkey];
new carkey2 = PlayerData[playerid][pPcarkey2];
new carkey3 = PlayerData[playerid][pPcarkey3];
new carkey4 = PlayerData[playerid][pPcarkey4];
new carkey5 = PlayerData[playerid][pPcarkey5];
if(carkey != 999 && carkey != 0)
{
format(string, sizeof(string), "Model: %s Valoare: %d | Incuiat: %d | Numar: %s", CarData[carkey][cDescription], CarData[carkey][cValue], CarData[carkey][cLockk], CarData[carkey][cNum]);
ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Masini personale", DialogString, "Select", "Close");
}
if(carkey2 != 999 && carkey2 != 0)
{
format(string, sizeof(string), "Model: %s Valoare: %d | Incuiat: %d | Numar: %s", CarData[carkey2][cDescription], CarData[carkey2][cValue], CarData[carkey2][cLockk], CarData[carkey2][cNum]);
ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Masini personale", DialogString, "Select", "Close");
}
if(carkey3 != 999 && carkey3 != 0)
{
format(string, sizeof(string), "Model: %s Valoare: %d | Incuiat: %d | Numar: %s", CarData[carkey3][cDescription], CarData[carkey3][cValue], CarData[carkey3][cLockk], CarData[carkey3][cNum]);
ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Masini personale", DialogString, "Select", "Close");
}
if(carkey4 != 999 && carkey4 != 0)
{
format(string, sizeof(string), "Model: %s Valoare: %d | Incuiat: %d | Numar: %s", CarData[carkey4][cDescription], CarData[carkey4][cValue], CarData[carkey4][cLockk], CarData[carkey4][cNum]);
ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Masini personale", DialogString, "Select", "Close");
}
if(carkey5 != 999 && carkey5 != 0)
{
format(string, sizeof(string), "Model: %s Valoare: %d | Incuiat: %d | Numar: %s", CarData[carkey5][cDescription], CarData[carkey5][cValue], CarData[carkey5][cLockk], CarData[carkey5][cNum]);
ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Masini personale", DialogString, "Select", "Close");
}
return 1;
}
//----------------------------------------------------------------------------------------------------//
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Da, nu am reusit