error 035: argument type mismatch (argument 1) -
Riwerry - 02.11.2013
One word, wow

Today i done much harded working scripts but now i added to OnPlayerConnect, SendClientMessageToAll and i got an error.
error 035: argument type mismatch (argument 1)
pawn Код:
public OnPlayerConnect (playerid)
{
if (fexist (PouzivatelovaCesta (playerid)))
{
SendClientMessageToAll(FARBA_ZELENA, "%s sa pripojil na server. (Registrovanэ hrбc)");
INI_ParseFile (PouzivatelovaCesta (playerid), "NacitavaniePouzivatelov", .bExtra = true, .extra = playerid);
ShowPlayerDialog (playerid, DIALOG_PRIHLASOVANIE, DIALOG_STYLE_PASSWORD,""FARBA_BIELA"Prihlбsenie",""FARBA_BIELA"Napнљ heslo niћљie, pre prihlбsenie.","Potvrdiќ","Zruљiќ");
}
else
{
ShowPlayerDialog (playerid, DIALOG_REGISTRACIA, DIALOG_STYLE_PASSWORD,""FARBA_BIELA"Registrбcia",""FARBA_BIELA"Napнљ heslo niћљie, pre registrovanie novйho ъиtu.","Potvrdiќ","Zruљiќ");
}
return 1;
}
THANKS EVERYBODY FOR REPLYING ME
Re: error 035: argument type mismatch (argument 1) -
Konstantinos - 02.11.2013
In the line about SendClientMessageToAll?
How FARBA_ZELENA is defined?
Re: error 035: argument type mismatch (argument 1) -
Riwerry - 02.11.2013
#define FARBA_ZELENA "{00FF00}"
Re: error 035: argument type mismatch (argument 1) -
Konstantinos - 02.11.2013
You've defined it as a string when it needs a number for color.
pawn Код:
#define FARBA_ZELENA 0x00FF00FF
Note that if you use FARBA_ZELENA for color embedding such as "This is a text "FARBA_ZELENA" blabla" then it'll give another error about find "-identifier" etc. In that case, rename to to another name and use it.
Re: error 035: argument type mismatch (argument 1) -
Riwerry - 02.11.2013
Oh yes mate ty
//Edit wtf? i just compiled no error or warning run samp server.exe when gta starts Connected, joining the game and then it cant connect becouse my samp server.exe just exit
//Edit 2 i tried it on some other position becouse it was before checking if user .ini exists or no so i put it after this, but now when register dialog came it not spawn me, where i should put this SendClientMessageToAll?
Re: error 035: argument type mismatch (argument 1) -
Konstantinos - 02.11.2013
Did it print anything to the server log? I'm afraid that'd be a crash.
Load crashdetect plugin (
https://github.com/Zeex/samp-plugin-...ases/tag/v4.12) and follow that post:
https://github.com/Zeex/samp-plugin-...ith-debug-info
Run your server again and connect. If it indeed crashes, then it'll print debug messages to the console/server log.
Re: error 035: argument type mismatch (argument 1) -
Riwerry - 02.11.2013
I edited topic up
Re: error 035: argument type mismatch (argument 1) -
Riwerry - 02.11.2013
Mate, when it crashed, nothing about crash on log. I'll try it with this crash detector. I'll let you know...
//EDIT SA-MP Dedicated Server
----------------------
v0.3x-R2, ©2005-2013 SA-MP Team
[20:33:02]
[20:33:02] Server Plugins
[20:33:02] --------------
[20:33:02] Loaded 0 plugins.
[20:33:02]
[20:33:02] Filterscripts
[20:33:02] ---------------
[20:33:02] Loaded 0 filterscripts.
[20:33:02] Las Venturas Roleplay by
[20:33:02] (null)
[20:33:02] Number of vehicle models: 0
Console input: exit
[20:33:35] --- Server Shutting Down.
ehm, this exit input isnt by me
Re: error 035: argument type mismatch (argument 1) -
Konstantinos - 02.11.2013
It closed because someone typed exit into the console. If you were not you, then I've no idea. Is remote access possible?
Re: error 035: argument type mismatch (argument 1) -
Riwerry - 02.11.2013
What do you mean? Teamwiever?