18.01.2012, 15:17
i made a cmd and i doesent work..please help i want each player to set his own virtualworld PLease help!
Код:
//----------------------------------[VW]----------------------------------------------- if(strcmp(cmd, "/vw", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) new playa; tmp = strtok(cmdtext, idx); virid = strvalEx(tmp); { if(IsPlayerConnected(playa)) { PlayerInfo[playa][pVirWorld] = virid; format(string, sizeof(string), "** You have set %s's (%d) virtual world to %d.", giveplayer,playa, virid); } } return 1; }