14.09.2011, 19:48
Hello, I know ive posted a few times already, but the only way to learn is through experience. Heres the issue.
When I /enter, it doesnt retrieve the data from the MYSQL base, therefor I cannot /enter. the Data retrieval and command are as follows:
Actual /enter.
When I /enter, it doesnt retrieve the data from the MYSQL base, therefor I cannot /enter. the Data retrieval and command are as follows:
pawn Код:
new factionid = MySQL_GetValue(FactionSQLID[factionid],"id" "factions");
FactionIntX[factionid] = MySQL_GetValue(FactionSQLID[factionid],"FactionIntX" "factions");
FactionIntY[factionid] = MySQL_GetValue(FactionSQLID[factionid],"FactionIntY" "factions");
FactionIntZ[factionid] = MySQL_GetValue(FactionSQLID[factionid],"FactionIntZ" "factions");
FactionInt[factionid] = MySQL_GetValue(FactionSQLID[factionid],"FactionInt" "factions");
FactionEntX[factionid] = MySQL_GetValue(FactionSQLID[factionid],"FactionEntX" "factions");
FactionEntY[factionid] = MySQL_GetValue(FactionSQLID[factionid],"FactionEntY" "factions");
FactionEntZ[factionid] = MySQL_GetValue(FactionSQLID[factionid],"FactionEntZ" "factions");
pawn Код:
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, FactionEntX[factionid], FactionEntY[factionid],FactionEntZ[factionid]))
{
SetPlayerPos(playerid, FactionIntX[factionid],FactionIntY[factionid],FactionIntZ[factionid]);
SetPlayerInterior(playerid, FactionInt[factionid]);
SetPlayerVirtualWorld(playerid, 0);
}
return 1;
}
CMD:exit(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, FactionIntX[factionid],FactionIntY[factionid],FactionIntZ[factionid]))
{
SetPlayerPos(playerid, FactionEntX[factionid],FactionEntY[factionid],FactionEntZ[factionid]);
SetPlayerVirtualWorld(playerid, 0);
}
return 1;
}