.JokeR. 0 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 Dělal sem si zaměstnání podle TuT ale mám tam 5 Errorů pwn(391) : error 001: expected token: ",", but found "-integer value-"pwn(391) : warning 215: expression has no effect pwn(391) : warning 215: expression has no effect pwn(391) : error 001: expected token: ";", but found ")" pwn(391) : error 029: invalid expression, assumed zero pwn(391) : fatal error 107: too many error messages on one line 5 Errors. U textu SCM(playerid,COLOR_GREEN 0x40FF40FF,"Pro zaměstnáni stiskni L.ATL"); Link to comment Share on other sites More sharing options...
0 MinecraftPlayer 0 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 Dáváš tam 2x barvu textu ... Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 SCM(playerid,COLOR_GREEN,"Pro zaměstnáni stiskni L.ATL"); Link to comment Share on other sites More sharing options...
0 aleskocian 0 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 ja mam zas jinou chybu C:\DOCUME~1\ADMINI~1\Plocha\VCI~1\test.pwn(25) : error 017: undefined symbol "IsPlayerInSphere" to je ten radek if(IsPlayerInSphere(playerid,-215.6684,981.0313,19.4960, 3) == 1){//když je v určitých souřadnicích, Doplnte si! Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 Máš tam definici fce IsPlayerInSphere? Link to comment Share on other sites More sharing options...
0 aleskocian 0 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 ne nemam to chybi jen definie nebo jeste k tomu neco patri Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 http://wiki.sa-mp.com/wiki/Useful_Functions najdi si tam ten public Link to comment Share on other sites More sharing options...
0 aleskocian 0 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 hotovo uz jsem si to opravi tim to #define IsPlayerInSphere(%0,%1,%2,%3,%4) IsPlayerInRangeOfPoint(%0,%4,%1,%2,%3) Link to comment Share on other sites More sharing options...
0 aleskocian 0 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 mnoho krat dekuji kazliku funguje to Link to comment Share on other sites More sharing options...
0 aleskocian 0 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 jak si mam udelat druhe povolani v te to sekci public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)//tu kontroluje co hrac klika cize je to dobre napr. na povolanie cez L.Alt { if(newkeys == KEY_WALK){//L.ALT pro zaměstnání if(job[playerid] == 1) return SendClientMessage(playerid, COLOR_GREEN, "[** ERROR **] Zde už jsi zaměstnán!"); if(IsPlayerInSphere(playerid,-322.9824,1055.7062,19.7422, 3) == 1){//když je v určitých souřadnicích, Doplnte si! job[playerid] = 1; // Zaněstná ho SetPlayerSkin(playerid, 283);//nastavi skin GivePlayerWeapon(playerid,25,100);//dame mu brokovnicu zo 100 nabojmi GivePlayerWeapon(playerid,24,100);//dame mu Deagle z 50 nabojmi GivePlayerWeapon(playerid,3,1);//dame mu obusok }//ATD Zde si muzete doplnit třeba mu doplnit zdraví a tak } return 1; } Link to comment Share on other sites More sharing options...
0 Hrb™ 48 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 jak si mam udelat druhe povolani v te to sekci public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)//tu kontroluje co hrac klika cize je to dobre napr. na povolanie cez L.Alt { if(newkeys == KEY_WALK){//L.ALT pro zaměstnání if(job[playerid] == 1) return SendClientMessage(playerid, COLOR_GREEN, "[** ERROR **] Zde už jsi zaměstnán!"); if(IsPlayerInSphere(playerid,-322.9824,1055.7062,19.7422, 3) == 1){//když je v určitých souřadnicích, Doplnte si! job[playerid] = 1; // Zaněstná ho SetPlayerSkin(playerid, 283);//nastavi skin GivePlayerWeapon(playerid,25,100);//dame mu brokovnicu zo 100 nabojmi GivePlayerWeapon(playerid,24,100);//dame mu Deagle z 50 nabojmi GivePlayerWeapon(playerid,3,1);//dame mu obusok }//ATD Zde si muzete doplnit třeba mu doplnit zdraví a tak } return 1; } Tak jak tam máš if(job[playerid]==1) return ...... Tak dej jak máš // ATD... else if(job[playerid]==2) return ... a pokračuj podle sebe, cop chceš mít ve 2. povolání Link to comment Share on other sites More sharing options...
0 aleskocian 0 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 dik jdu to zkusit dam ti vedet jestli to jde Link to comment Share on other sites More sharing options...
0 aleskocian 0 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 jo funguje ale jak mam udelat kdyby to chtel opustit to povolani Link to comment Share on other sites More sharing options...
0 dajmon1026 1 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 urob si to cez prikaz /vypoved kde ked napise /vypoved da mu to job[playerid]=0; popripade aj zmenu farby nicku na bielu atd. alebo ked chces aby to povolanie mohlo opustit zamestnanie len tam kde to zamestnanie aj prijal tak... ak je policajt povolanie job[playerid]=1; tak if(job[playerid]==1){job[playerid]=0;} no proste len dalsia podmienka Link to comment Share on other sites More sharing options...
0 aleskocian 0 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 nemas prosim naky tutu kde je to vse popsane a tak Link to comment Share on other sites More sharing options...
0 dajmon1026 1 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 ne ale proste: if(newkeys == KEY_WALK){ if(IsPlayerInSphere(playerid,-322.9824,1055.7062,19.7422, 3) == 1){ if(job[playerid]==1){ job[playerid]=0; SCM(playerid,COLOR_CERVENA,"Podal si vypoved zo zamestnanie"); }else{ job[playerid] = 1; SetPlayerSkin(playerid, 283); GivePlayerWeapon(playerid,25,100); GivePlayerWeapon(playerid,24,100); GivePlayerWeapon(playerid,3,1); } } } Link to comment Share on other sites More sharing options...
0 aleskocian 0 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 a na prikaz by to bylo jak ? Link to comment Share on other sites More sharing options...
0 dajmon1026 1 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 if (strcmp("/vypoved", cmdtext, true, 10) == 0) { job[playerid]=0; SCM(playerid,COLOR_CERVENA,"podal si vypoved zo zamestnanie"): return 1; } este si tam pridaj zmenu farby nicku zmenu skinu atd. a mas to Link to comment Share on other sites More sharing options...
0 aleskocian 0 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 C:\DOCUME~1\ADMINI~1\Plocha\VCI~1\test.pwn(49) : error 017: undefined symbol "cmdtext" C:\DOCUME~1\ADMINI~1\Plocha\VCI~1\test.pwn(52) : error 001: expected token: ";", but found ":" C:\DOCUME~1\ADMINI~1\Plocha\VCI~1\test.pwn(52) : error 029: invalid expression, assumed zero C:\DOCUME~1\ADMINI~1\Plocha\VCI~1\test.pwn(54) : error 030: compound statement not closed at the end of file (started at line 30) tohle mi to napsalo Link to comment Share on other sites More sharing options...
0 dajmon1026 1 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 jups ja som sa pomylil SCM(playerid,COLOR_CERVENA,"podal si vypoved zo zamestnanie"); Link to comment Share on other sites More sharing options...
0 Petr 44 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 C:\DOCUME~1\ADMINI~1\Plocha\VCI~1\test.pwn(49) : error 017: undefined symbol "cmdtext"C:\DOCUME~1\ADMINI~1\Plocha\VCI~1\test.pwn(52) : error 001: expected token: ";", but found ":" C:\DOCUME~1\ADMINI~1\Plocha\VCI~1\test.pwn(52) : error 029: invalid expression, assumed zero C:\DOCUME~1\ADMINI~1\Plocha\VCI~1\test.pwn(54) : error 030: compound statement not closed at the end of file (started at line 30) tohle mi to napsalo Ukaž celý callback OnPlayerCommandText Link to comment Share on other sites More sharing options...
0 aleskocian 0 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 to si mi poslal to same co je nahore Link to comment Share on other sites More sharing options...
0 dajmon1026 1 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 nn na hore som sa preklikol a na konci SCM som dal : namiesto ; Link to comment Share on other sites More sharing options...
0 Petr 44 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 to si mi poslal to same co je nahore Říkám ukaž celý OnPlayerCommandText Link to comment Share on other sites More sharing options...
0 aleskocian 0 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 jde to a děkuji petrovi a dajmonovi a hrbovi diky vse jde jen si to doladim ze mu to resetne zbrane a tak to si udelam a děkuji moc jsem to potreboval prosim o lock temy Link to comment Share on other sites More sharing options...
Dotaz
.JokeR. 0
Dělal sem si zaměstnání podle TuT ale mám tam 5 Errorů
U textu
Link to comment
Share on other sites
24 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