ForestCZE 2 Odesláno: 9. Srpen, 2010 Share Odesláno: 9. Srpen, 2010 Zdravim, potreboval bych poradit s jednou prkotinou netusim, kde je chyba. Mám příkaz AFK a chci přidat, že mu to před nick hodí [AFK] Script vypadá takto: StalyNick[playerid] = PlayerName(playerid); format(fnick, sizeof(fnick), "[AFK]%s",StalyNick[playerid]); SetPlayerName(playerid, fnick); Error: new.pwn(936) : error 006: must be assigned to an array 936: StalyNick[playerid] = PlayerName(playerid); Díky předem za pomoc Link to comment Share on other sites More sharing options...
0 DonMafia 14 Odesláno: 9. Srpen, 2010 Share Odesláno: 9. Srpen, 2010 Načo definuješ StalyNick ? Normálne tam daj iba PlayerName Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 9. Srpen, 2010 Share Odesláno: 9. Srpen, 2010 new stalynick[MAX_PLAYER_NAME][MAX_PLAYERS]; stalynick[MAX_PLAYER_NAME][playerid] = Jmeno(playerid); Link to comment Share on other sites More sharing options...
0 ForestCZE 2 Odesláno: 9. Srpen, 2010 Author Share Odesláno: 9. Srpen, 2010 StalyNick[MAX_PLAYER_NAME][playerid] = PlayerName(playerid); new.pwn(936) : error 032: array index out of bounds (variable "StalyNick") new.pwn(936) : error 006: must be assigned to an array Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 9. Srpen, 2010 Share Odesláno: 9. Srpen, 2010 skus new string[25]; format(string,25,"%s",PlayerName(playerid)); StalyNick[MAX_PLAYER_NAME][playerid] = string; Link to comment Share on other sites More sharing options...
0 ForestCZE 2 Odesláno: 9. Srpen, 2010 Author Share Odesláno: 9. Srpen, 2010 skusnew string[25]; format(string,25,"%s",PlayerName(playerid)); StalyNick[MAX_PLAYER_NAME][playerid] = string; new afktext[128]; TogglePlayerControllable(playerid,false); StalyNick[MAX_PLAYER_NAME][playerid] = PlayerName(playerid); format(afktext, sizeof(afktext), "%s je nyní AFK [Pryč]",PlayerName(playerid)); SendClientMessageToAll(ZLUTA, afktext); Takže jak? Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 9. Srpen, 2010 Share Odesláno: 9. Srpen, 2010 new afktext[128]; TogglePlayerControllable(playerid,false); format(afktext, sizeof(afktext), "%s",PlayerName(playerid)); StalyNick[MAX_PLAYER_NAME][playerid] = afktext; format(afktext, sizeof(afktext), "%s išiel AFK ! [/AFK]",PlayerName(playerid)); SendClientMessageToAll(ZLUTA, afktext); Link to comment Share on other sites More sharing options...
0 ForestCZE 2 Odesláno: 9. Srpen, 2010 Author Share Odesláno: 9. Srpen, 2010 To samé Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 9. Srpen, 2010 Share Odesláno: 9. Srpen, 2010 enum TEST { stalynick[MAX_PLAYER_NAME] } new Hrac[MAX_PLAYERS][TEST]; a už len dopln tamto čo som ti pisal posledne Link to comment Share on other sites More sharing options...
Dotaz
ForestCZE 2
Zdravim, potreboval bych poradit s jednou prkotinou netusim, kde je chyba. Mám příkaz AFK a chci přidat, že mu to před nick hodí [AFK]
Script vypadá takto:
Error:
936:
Díky předem za pomoc
Link to comment
Share on other sites
8 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