От
Barmen
public OnPlayerConnect(playerid)
{
GetPlayerName(playerid, pInfo[playerid][NAME], MAX_PLAYER_NAME);
static const fmt_query[] = "SELECT `id` FROM `account` WHERE `name` = '%s'";
new query[sizeof(fmt_query)+(-2+MAX_PLAYER_NAME)];
format(query, sizeof(query), fmt_query, pInfo[playerid][NAME]);
mysql_tquery(dbHandle, query, "CheckRegistration", "i", playerid);
ClearpInfo(playerid);
return 1;
}
forward CheckRegistration();
public CheckRegistration()
{
new rows;
cache_get_row_count(rows);
if(rows) ShowLogin(playerid); //72 строка
else ShowRegistration(playerid); // 73 строка
}
stock ShowLogin(playerid)
{
SendClientMessage(playerid, COLOR_RED, "Вы зарегестрированы");
}
stock ShowRegistration(playerid)
{
SendClientMessage(playerid, COLOR_RED, "Вы не зарегестрированы");
}
Помогите
Canon_RolePlay.pwn(72) : error 017: undefined symbol "playerid"
Canon_RolePlay.pwn(73) : error 017: undefined symbol "playerid"