Evoserts | Дата: Вторник, 23.12.2014, 19:04:57 | Сообщение # 1 |
Группа: Пользователи
Сообщений: 15
| Помогите исправить ошибку: \GM.pwn(8884) : error 012: invalid function call, not a valid address
Вот сама строка:
else if(strcmp(cmd, "/GiveDonate", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREEN, "* Èñïîëüçóéòå: /givedonate [èä] [ñóììà]"); return 1; } new playa; new money; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); money = strval(tmp); if (PlayerInfo[playerid] [pAdmin]== 6) { if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { PlayerInfo[playa] [pDonateMoney]= money; format(string,sizeof(string),"Âû ïîëó÷èëè %d DonateMoney îò àäìèíèñòðàòîðà %s",money, Name(playerid)); SendClientMessage(playa,COLOR_LIGHTBLUE,string); SavePlayer(playa); } } }Добавлено (23.12.2014, 19:04:57) --------------------------------------------- playa = ReturnUser(tmp); ТУТ ОШИБКА!
|
|
|
|