Daxic 0 Odesláno: 29. Listopad, 2009 Share Odesláno: 29. Listopad, 2009 Dobry den mám problém s vypsáním proměných .... promené mám 100% správně ale chyba nastává ve vypsání skóré které mám takto if (strcmp("/score", cmdtext, true, 10) == 0)//info { new score1[10] = scoteror; new score2[10] = scopolic; SendClientMessage(playerid, 0xFF0000AA, "TERORIST: %f POLICE: %f", score1, score2); return 1; } a hlásí mi to tyto chyby C:\Users\Desktop\gvp.pwn(147) : error 008: must be a constant expression; assumed zero C:\Users\Desktop\gvp.pwn(148) : error 008: must be a constant expression; assumed zero C:\Users\Desktop\gvp.pwn(149) : warning 202: number of arguments does not match definition C:\Users\Desktop\gvp.pwn(149) : warning 202: number of arguments does not match definition Děkuji za pomoc Link to comment Share on other sites More sharing options...
0 Om3n 78 Odesláno: 29. Listopad, 2009 Share Odesláno: 29. Listopad, 2009 if (strcmp("/score", cmdtext, true, 10) == 0)//info { new score1 = scoteror; new score2 = scopolic; new string[256]; format(string,sizeof(string),"TERORIST: %d POLICE: %d", score1, score2); SendClientMessage(playerid, 0xFF0000AA, string); return 1; } Link to comment Share on other sites More sharing options...
0 Daxic 0 Odesláno: 29. Listopad, 2009 Author Share Odesláno: 29. Listopad, 2009 díky za pomoc už to běží Link to comment Share on other sites More sharing options...
0 Veron 0 Odesláno: 29. Listopad, 2009 Share Odesláno: 29. Listopad, 2009 Prosím jak by to vypadalo u textdrawu? ( jako textdrawshowplayer ) Link to comment Share on other sites More sharing options...
0 Om3n 78 Odesláno: 29. Listopad, 2009 Share Odesláno: 29. Listopad, 2009 forward Score(); OnGamemodeInit: SetTimer("Score",2000,1); public Score() { new score1 = scoteror; new score2 = scopolic; new string[256]; format(string,sizeof(string),"TERORIST: %d POLICE: %d", score1, score2); TextDrawSetString(TextDraw_ID,string); } a TD si snad udelas sam Link to comment Share on other sites More sharing options...
0 Veron 0 Odesláno: 29. Listopad, 2009 Share Odesláno: 29. Listopad, 2009 Super diky... A jeste jedna taka vec "sunny" ... Potreboval bych to, ze kdyz je v jednom teamu vice lidi nez v druhem tak ze to toho hrace nepusti do hry. Ale nwm nwm jak na to .. Pomuzete pls nekdo? Link to comment Share on other sites More sharing options...
0 Om3n 78 Odesláno: 29. Listopad, 2009 Share Odesláno: 29. Listopad, 2009 public OnPlayerRequestSpawn(playerid) { new PocetTeam1; new PocetTeam2; for(new d=0;d{ If(IsPlayerConnected(i)) { if(team[i] == 1) { PocetTeam1 ++; } if(team[i] == 2) { PocetTeam2 ++; } } } if(team[playerid] == 1 && PocetTeam1 > PocetTeam2 || team[playerid] == 2 && PocetTeam2 > PocetTeam2) return SendClientMessage(playerid, 0xFFFFFFAA, "Vyber si jinej team."); return 1; } a v OnPlayerRequestClass musis udelat ze kdyz si najede na nejakyho hrace tak mu to rovnou nastavi promenou team Link to comment Share on other sites More sharing options...
Dotaz
Daxic 0
Dobry den mám problém s vypsáním proměných .... promené mám 100% správně ale chyba nastává ve vypsání skóré které mám takto
if (strcmp("/score", cmdtext, true, 10) == 0)//info
{
new score1[10] = scoteror;
new score2[10] = scopolic;
SendClientMessage(playerid, 0xFF0000AA, "TERORIST: %f POLICE: %f", score1, score2);
return 1;
}
a hlásí mi to tyto chyby
C:\Users\Desktop\gvp.pwn(147) : error 008: must be a constant expression; assumed zero
C:\Users\Desktop\gvp.pwn(148) : error 008: must be a constant expression; assumed zero
C:\Users\Desktop\gvp.pwn(149) : warning 202: number of arguments does not match definition
C:\Users\Desktop\gvp.pwn(149) : warning 202: number of arguments does not match definition
Děkuji za pomoc
Link to comment
Share on other sites
6 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now