AddMenu Convert to ShowPlayerDialog
#10

Quote:
Originally Posted by pista
Посмотреть сообщение
If not added
pawn Код:
for (new i;i<4;i++) gVoteItems[i] = "RESET";
server crashes..

else

That might be because the strings were null before. You need to make sure they're parsing correctly (make sure you actually assign some data to them), as thats a big deal lol.


For dialogs lists you want to use strcat which will concatenate two strings together. The goal is to loop through your array of races (race name strings rather) and concatenate them all together (making sure a "\n" is added to the end, so it doesnt for a sentence like "Race1Race2Race3", but makes a list).

The wiki artcile i linked you to shows a static implementation of it, but the dynamic implementation is pretty much the same (expect its inside a loop, and uses arrays).
Reply


Messages In This Thread
AddMenu Convert to ShowPlayerDialog - by pista - 07.07.2011, 03:16
Re: AddMenu Convert to ShowPlayerDialog - by =WoR=Varth - 07.07.2011, 03:18
Re: AddMenu Convert to ShowPlayerDialog - by pista - 07.07.2011, 03:27
Re: AddMenu Convert to ShowPlayerDialog - by =WoR=Varth - 07.07.2011, 03:30
Re: AddMenu Convert to ShowPlayerDialog - by pista - 07.07.2011, 03:49
Re: AddMenu Convert to ShowPlayerDialog - by pista - 07.07.2011, 04:08
Re: AddMenu Convert to ShowPlayerDialog - by BigETI - 07.07.2011, 05:10
Re: AddMenu Convert to ShowPlayerDialog - by pista - 07.07.2011, 07:40
Re: AddMenu Convert to ShowPlayerDialog - by pista - 07.07.2011, 08:13
Re: AddMenu Convert to ShowPlayerDialog - by Kyosaur - 07.07.2011, 08:27

Forum Jump:


Users browsing this thread: 1 Guest(s)